package com.edu.exam.enums.quality.monitoring;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 权限状态枚举
 */
public enum PermissionStatus implements BaseEnum {
    ACTIVE("ACTIVE", "启用"),
    INACTIVE("INACTIVE", "禁用"),
    PENDING("PENDING", "待审核"),
    APPROVED("APPROVED", "已审核"),
    REJECTED("REJECTED", "已拒绝"),
    REVOKED("REVOKED", "已撤销"),
    EXPIRED("EXPIRED", "已过期"),
    SUSPENDED("SUSPENDED", "已暂停"),
    GRANTED("GRANTED", "已授权"),
    DENIED("DENIED", "已拒绝"),
    BLOCKED("BLOCKED", "已阻塞"),
    CONDITIONAL("CONDITIONAL", "条件性");

    private final String code;
    private final String description;

    PermissionStatus(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
